package org.wisdom.s3.job.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.wisdom.s3.job.interceptor.FctInterceptor;

import cn.hutool.json.JSONObject;

/**
 * FctAPI访问接口
 *
 * @author zhangzhiyan
 * @date 2021/07/14 11:35
 **/
@FeignClient(url = "${fct.url}", name = "FctFeign", configuration = FctInterceptor.class)
public interface FctFeign {

    /**
     * 查询用户
     *
     * @author 张智研
     * @date 2023/11/27 16:20
     * @param body 参数
     * @return cn.hutool.json.JSONObject
     */
    @PostMapping(value = "/people-center/people-query/employee/list", headers = {"Content-Type=application/json; charset=utf-8"})
    JSONObject employeeList(@RequestBody JSONObject body);

    /**
     * 查询组织
     *
     * @author 张智研
     * @date 2023/11/27 16:22
     * @param body 参数
     * @return cn.hutool.json.JSONObject
     */
    @GetMapping(value = "/people-center/people-query/organization/page", headers = {"Content-Type=application/json; charset=utf-8"})
    JSONObject organizationPage(@RequestBody JSONObject body);
}